<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@include file="/commons/taglibs.jsp" %>
<!DOCTYPE html>
<html>
<fmt:bundle basename="res">
<head>
    <meta charset="utf-8">
    <title><fmt:message key='lb'/></title>
    <jsp:include page="/WEB-INF/commons/commons-header.jsp" flush="true"/>
</head>
<body>

<%--<div class="layui-fluid">--%>
    <%--<div class="layui-card">--%>
        <%--<div class="layui-form layui-card-header layuiadmin-card-header-auto">--%>

            <%--<div class="layui-form-item">--%>
                <form name="totalForm" id="totalForm" action="${web_domain}/mall/seckillSession/chooseMerchants" method="get">

                    <%--<div class="layui-inline">--%>
                        <%--<label class="layui-form-label">商品名称</label>--%>
                        <%--<div class="layui-input-inline">--%>
                            <%--<input type="text" name="name" placeholder="请输入商品名称" value="<c:if test='${params.name !=null}'>${params.name}</c:if>" autocomplete="off" class="layui-input">--%>
                        <%--</div>--%>
                    <%--</div>--%>

                    <%--<div class="layui-inline">--%>
                        <%--<label class="layui-form-label">商品编号</label>--%>
                        <%--<div class="layui-input-inline">--%>
                            <%--<input type="text" name="goodsNo" placeholder="请输入商品名称" value="<c:if test='${params.goodsNo !=null}'>${params.goodsNo}</c:if>" autocomplete="off" class="layui-input">--%>
                        <%--</div>--%>
                    <%--</div>--%>

                    <!-- 需要排序的字段 -->
                    <%--<input type="hidden" class="feijin-orderby" name="orderByCreateTime" id="orderByCreateTimeParams" value="${params.orderByCreateTime}"/>--%>
                    <%--<input type="hidden" class="feijin-orderby" name="orderByStore" id="orderByStoreParams" value="${params.orderByStore}"/>--%>
                    <%--<input type="hidden" class="feijin-orderby" name="orderByPrice" id="orderByPriceParams" value="${params.orderByPrice}"/>--%>
                    <%--<input type="hidden" class="feijin-orderby" name="orderBySalesVolume" id="orderBySalesVolumeParams" value="${params.orderBySalesVolume}"/>--%>
                    <!-- 需要排序的字段 -->

                    <%--<div class="layui-inline">--%>
                        <%--<button class="layui-btn layui-btn-sm layuiadmin-btn-list" id="search"><i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> 搜索</button>--%>
                    <%--</div>--%>
                </form>
            <%--</div>--%>
        <%--</div>--%>

    <%--</div>--%>

    <div class="layui-card">
        <div class="layui-field-box layui-form">

            <table class="layui-table layui-form" lay-size="sm">
                <thead>
                <th width="5%"><input id="checkboxs" type="checkbox" lay-ignore lay-skin="primary"/></th>
                <th><fmt:message key='sjzh'/></th>
                <th><fmt:message key='sjdp'/></th>
                </thead>
                <c:forEach items="${page.result}" var="item" varStatus="status">
                    <tr>
                        <td><input type="checkbox" value="${item.id}" class="feijin-check" lay-ignore lay-skin="primary"/></td>
                        <td>${item.username }</td>
                        <td>${item.shopName }</td>
                    </tr>
                </c:forEach>
            </table>
            <jsp:include page="/commons/page.jsp" flush="true"/>
        </div>
    </div>

</div>

<script>

    $(function () {

        //全选反选
        $("#checkboxs").click(function () {
            if (this.checked) {
                $(".feijin-check:checkbox").prop("checked", true);
            } else {
                $(".feijin-check:checkbox").prop("checked", false);
            }
        });

    })
    ;
</script>
</body>
</fmt:bundle>
</html>
